

#Influxdb tick因子名称
INFLUXDBTICKFACTORDATABASE='MaoTickFactors20191118'
INFLUXDBTICKFACTORDATABASELONGTERM='MaoTickFactors20200430'
INFLUXDBTICKTICKDATABASE='MaoTickData20200511'
INFLUXWWWDATABASE='wangTickFactor20201130(oldtf)'
INFLUXDBDAILYDATABASE='MaoDailyData20190915'
INFLUXDBMINUTEDATABASE='MinuteLine'
INFLUXGULIDATABASE='guliDailyData20201229'
INFLUXGULIDATABASESOURSE= 'DailyMarket_Gus'
INFLUXGULIFactorBASESOURSE='Processed_Gus'
#开始日期
FIRSTDATE='20070101'
# 默认空值
EMPTY_STRING = ''
EMPTY_UNICODE = ''
EMPTY_INT = 0
EMPTY_FLOAT = 0.0
#指数代码
HS300='000300.SH'
SSE50='000016.SH'
CSI500='000905.SH'
# 方向常量
DIRECTION_NONE = '无方向'
DIRECTION_BUY = '买'
DIRECTION_SELL = '卖'
DIRECTION_UNKNOWN = '未知'
DIRECTION_NET = '净'
DIRECTION_FORQUOTE = '询价'
DIRECTION_RZRQ_BUY = '融资融券_普通买入'
DIRECTION_RZRQ_SELL = '融资融券_普通卖出'
DIRECTION_RZRQ_RZMR = '融资融券_融资买入'
DIRECTION_RZRQ_RQMC = '融资融券_融券卖出'
# 开平常量
OFFSET_NONE = '无开平'
OFFSET_OPEN = '开仓'
OFFSET_CLOSE = '平仓'
OFFSET_CLOSETODAY = '平今'
OFFSET_CLOSEYESTERDAY = '平昨'
OFFSET_UNKNOWN = '未知'

# 状态常量
STATUS_NOTTRADED = '未成交'
STATUS_PARTTRADED = '部分成交'
STATUS_ALLTRADED = '全部成交'
STATUS_CANCELLED = '已撤销'
STATUS_UNKNOWN = '未知'

# 合约类型常量
PRODUCT_EQUITY = '股票'
PRODUCT_FUTURES = '期货'
PRODUCT_OPTION = '期权'
PRODUCT_INDEX = '指数'
PRODUCT_COMBINATION = '组合'
PRODUCT_FOREX = '外汇'
PRODUCT_UNKNOWN = '未知'
PRODUCT_SPOT = '现货'
PRODUCT_DEFER = '延期'
PRODUCT_NONE = ''

# 价格类型常量
PRICETYPE_LIMITPRICE = '限价'
PRICETYPE_MARKETPRICE = '市价'
PRICETYPE_FAK = 'FAK'
PRICETYPE_FOK = 'FOK'

# 期权类型
OPTION_CALL = '看涨期权'
OPTION_PUT = '看跌期权'

# 交易所类型
EXCHANGE_SSE = 'SSE'       # 上交所
EXCHANGE_SZSE = 'SZSE'     # 深交所
EXCHANGE_CFFEX = 'CFFEX'   # 中金所
EXCHANGE_SHFE = 'SHFE'     # 上期所
EXCHANGE_CZCE = 'CZCE'     # 郑商所
EXCHANGE_DCE = 'DCE'       # 大商所
EXCHANGE_SGE = 'SGE'       # 上金所
EXCHANGE_INE = 'INE'       # 上海国际能源交易中心
EXCHANGE_UNKNOWN = 'UNKNOWN'# 未知交易所
EXCHANGE_NONE = ''          # 空交易所
EXCHANGE_HKEX = 'HKEX'      # 港交所

EXCHANGE_SMART = 'SMART'       # IB智能路由（股票、期权）
EXCHANGE_NYMEX = 'NYMEX'       # IB 期货
EXCHANGE_GLOBEX = 'GLOBEX'     # CME电子交易平台
EXCHANGE_IDEALPRO = 'IDEALPRO' # IB外汇ECN

EXCHANGE_OANDA = 'OANDA'       # OANDA外汇做市商
EXCHANGE_OKCOIN = 'OKCOIN'     # OKCOIN比特币交易所


PRODUCT_STATUS_BeforeTrading = '开盘前'
PRODUCT_STATUS_NoTrading = '非交易'
PRODUCT_STATUS_Continous = '连续交易'
PRODUCT_STATUS_AuctionOrdering = '集合竞价报单'
PRODUCT_STATUS_AuctionBalance = '集合竞价价格平衡'
PRODUCT_STATUS_AuctionMatch = '集合竞价撮合'
PRODUCT_STATUS_Closed = '收盘'

# 货币类型
CURRENCY_USD = 'USD'            # 美元
CURRENCY_CNY = 'CNY'            # 人民币
CURRENCY_UNKNOWN = 'UNKNOWN'    # 未知货币
CURRENCY_NONE = ''              # 空货币



